import api from './axios'
//统一接口路径  
export const getAllBook = async (page,limit,wirter,id)=>{

    let res = await api.post('/getAllBook',{ page,limit,wirter,id});
    return res;
}

export const getAllKind= async ()=>{

    let res = await api.post('/getallkind',);
    return res;
}


export const gettypeBook= async ()=>{

    let res = await api.post('/gettypeBook',);
    return res;
}

export const getwriteBook= async (wirter)=>{

    let res = await api.post('/getwriteBook',{wirter});
    return res;
}

